package code;

import java.util.List;

import error.JException;

public interface CategoryComponet {
	/**
	 * 從內容取得代碼.
	 *
	 * @param category the category
	 * @param code the code
	 * @return the code by content
	 * @throws JException 
	 */
	public String getCodeByContent(String category, String code) throws JException;

	/**
	 * 從代碼取得內容.
	 *
	 * @param category the category
	 * @param Content the content
	 * @return the content by code
	 */
	public String getContentByCode(String category, String Content)throws JException;

	/**
	 * Gets the content from error table.
	 *
	 * @param code the code
	 * @return the content from error table
	 */
	public String getContentFromErrorTable(String code)throws JException;

	/**
	 * 取得所有代碼.
	 *
	 * @param category the category
	 * @return the ref mapping
	 */
	public List<CategoryCode> getRefMapping(String category)throws JException;

	/**
	 * Gets the ref mapping content.
	 *
	 * @param category the category
	 * @return the ref mapping content
	 */
	public String[] getRefMappingContent(String category)throws JException;
}
